﻿#include <iostream>
using namespace std;
//使用new动态创建一维数组
int main()
{
    int* arr = new int[5];
	for (int i = 0; i < 5; i++)
	{
		arr[i] = 10 + i;
		cout << "arr[" << i << "]=" << arr[i] << endl;
	}
	delete[] arr;
}
